package com.yike.user.service;

import com.yike.user.entity.PlatformUserRole;
import com.yike.user.param.PlatformUserRolePageParam;
import com.yike.common.base.BaseService;
import com.yike.common.pagination.Paging;

/**
 * 平台用户角色 服务类
 *
 * @author Sakura
 * @since 2024-10-29
 */
public interface PlatformUserRoleService extends BaseService<PlatformUserRole> {

    /**
     * 保存
     *
     * @param platformUserRole
     * @return
     * @throws Exception
     */
    boolean savePlatformUserRole(PlatformUserRole platformUserRole) throws Exception;

    /**
     * 修改
     *
     * @param platformUserRole
     * @return
     * @throws Exception
     */
    boolean updatePlatformUserRole(PlatformUserRole platformUserRole) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deletePlatformUserRole(Long id) throws Exception;


    /**
     * 获取分页对象
     *
     * @param platformUserRolePageParam
     * @return
     * @throws Exception
     */
    Paging<PlatformUserRole> getPlatformUserRolePageList(PlatformUserRolePageParam platformUserRolePageParam) throws Exception;

}
